<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.sql.ResultSet" import="domain.PropertyInc"%>
<jsp:useBean id="PropertyInc" class="repository.PropertyIncDAO"></jsp:useBean>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改资产入库表</title>
</head>
<body class="bobdysize">
	<%
		String ID = request.getParameter("ID");
		session.setAttribute("ID", ID);
		ResultSet rs = PropertyInc.query(ID);
		PropertyInc all = new PropertyInc();
		while (rs.next()) {
			all.setID(rs.getString("物品ID"));
			all.setName(rs.getString("物品名称"));
			all.setPrice(rs.getString("物品价格"));
			all.setNumber(rs.getString("数量"));
		}
	%>
	<form class="form-horizontal" role="form" action="PropIncMod"
		method="post">
		<fieldset>
			<legend>修改资产入库信息</legend>
			<div class="list">
				<div class="form-group">
					<div class="line">
						<label class="col-sm-2 control-label" for="ID">物品&nbsp;&nbsp;ID&nbsp;&nbsp;</label>
						<div class="col-sm-4">
							<input class="form-control" name="ID" id="ID" type="text"
								placeholder="<%=all.getID()%>" />
						</div>
					</div>
					<div class="line">
						<label class="col-sm-2 control-label" for="name">物品名称</label>
						<div class="col-sm-4">
							<input class="form-control" name="name" id="name" type="text"
								placeholder="<%=all.getName()%>" />
						</div>
					</div>
				</div>
				<div class="line">
					<label class="col-sm-2 control-label" for="price">物品价格</label>
					<div class="col-sm-4">
						<input class="form-control" name="price" id="price" type="text"
							placeholder="<%=all.getPrice()%>" />
					</div>
				</div>
				<div class="line">
					<label class="col-sm-2 control-label" for="ds_password">数&nbsp;&nbsp;&nbsp;量&nbsp;&nbsp;&nbsp;&nbsp;</label>
					<div class="col-sm-4">
						<input class="form-control" name="number" id="ds_password"
							type="text" placeholder="<%=all.getNumber()%>" />
					</div>
				</div>
				</br>
				<button type="submit" class="btn">修改</button>
				<button type="submit" class="btn">退出</button>
			</div>
		</fieldset>
	</form>
</body>
<style>
.bobdysize {
	background-color: rgb(30, 170, 62);
}

fieldset {
	color: blue;
	background: url(./img/back.gif);
}

.form-horizontal {
	width: 30%;
	margin: 0 auto;
}

.list {
	text-align: center;
}

.line {
	line-height: 45px;
}

.form-control {
	line-height: 30px;
}

.col-sm-4 {
	display: inline;
}

.col-sm-2 .control-label {
	width: 100px;
}

.btn {
	width: 20%;
	padding: 0 5%;
	margin: 0 5%;
	height: 35px;
}
</style>
</html>
